package com.gxlevi.builder;

public class HouseDirector {
    HouseBuilder houseBuilder;

    public HouseDirector(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public void setHouseBuilder(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public House build() {
        houseBuilder.buildBasic();
        houseBuilder.buildWall();
        houseBuilder.buildBoot();
        return houseBuilder.build();
    }
}
